#include "../mqcommon/mq_helper.hpp"

int main()
{
    castlemq::fileHelper helper("../mqcommon/logger.hpp");
    DLOG("是否存在：%d",helper.exists());
    DLOG("文件大小：%ld",helper.size());

    //castlemq::fileHelper helper("hello.txt");
    //DLOG("是否存在：%d",helper.exists());
    castlemq::fileHelper::createDictory("./bbb/ccc/ddd");
    //castlemq::fileHelper::createFile("aaa/bbb/ccc/ddd/hello.txt");
    //castlemq::fileHelper::deleteFile("aaa/bbb/ccc/ddd/hello.txt");
    //castlemq::fileHelper::deleteDictory("aaa");

    /*castlemq::fileHelper::createFile("hello.txt");
    castlemq::fileHelper helper("hello.txt");
    DLOG("是否存在：%d",helper.exists());
    helper.rename("hh.txt");*/


    /*castlemq::fileHelper helper("logger.hpp");
    std::string s="hello1111111111111";
    helper.write(s);
    //std::cout<<s<<std::endl;

    char sz[10];
    helper.read(sz,0,10);
    for(int i=0;i<10;++i)
    {
        std::cout<<sz[i];
    }

    std::string s="hello!";
    helper.write(&s[0],2,s.size());*/

    //castlemq::fileHelper::deleteFile("hh.txt");

    return 0;
}
